@echo off
set "sourceFolder=E:\LiblibAI-workspace\comfyui-deploy-win\ComfyUI\output\KKoutput"
cd %sourceFolder%
E:
if not exist %sourceFolder%  mkdir %sourceFolder%
copy C:\Users\Administrator\Desktop\generate_gallery_win.py %sourceFolder%
start E:\LiblibAI-workspace\comfyui-deploy-win\python_embeded\python.exe -m http.server 8010 --directory %sourceFolder% &
:loop
E:\LiblibAI-workspace\comfyui-deploy-win\python_embeded\python.exe %sourceFolder%\generate_gallery_win.py %sourceFolder%
timeout /t 12 /nobreak
goto loop

pause